/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = (exports = {});

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1635487045970_4716';

  // add your middleware config here
  config.middleware = [];

  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };

  const WeatherConfig = {
    city: '房山',
    appid: '39615497',
    appsecret: 'd3U6PWXK',
  };

  const WorkWeChat = {
    id: 'wwc31e2074e92c2322', // 企业ID
    agentId: 1000002,
    secret: 'qHiti58RzQzP9Q7X---O7JwZ64LQhN3us_Vr3Y0wNRM', // 应用秘钥
    liqingshan: 'LiQingShan',
    wuxinyang: 'JiuHaoDianChi',
  };

  return {
    ...config,
    ...userConfig,
    WeatherConfig,
    WorkWeChat,
  };
};
